# Contributor: Sam Whited <sam@samwhited.com>
# Maintainer: Sam Whited <sam@samwhited.com>
pkgname=py3-aiosasl
_pkgname=aiosasl
pkgver=0.5.0
pkgrel=2
pkgdesc="A generic asyncio-based SASL authentication library."
url="https://pypi.org/project/aiosasl/"
arch="all"
license="LGPL-3.0-only"
depends="python3"
makedepends="py3-setuptools"
subpackages="$pkgname-doc $pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check" # tests not included in source package.

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
	install -Dm644 COPYING.LESSER COPYING.gpl3 LICENSES README.rst \
		-t "$pkgdir"/usr/share/licenses/$pkgname
}

sha512sums="
bde4bf6ac82a385be60593305ac83927aa44312393850c8f6489e885392d033e90ab6cdbd3ccadec1ca45aa3bd9907f7f586293d54e8180c71706e3b53c36ed8  aiosasl-0.5.0.tar.gz
"
